import request from '@/utils/request'

// 查询生产计划-日计划列表
export function listDayPlan(query) {
  return request({
    url: '/produce/dayPlan/list',
    method: 'get',
    params: query
  })
}

// 查询生产计划-日计划详细
export function getDayPlan(id) {
  return request({
    url: '/produce/dayPlan/' + id,
    method: 'get'
  })
}

// 新增生产计划-日计划
export function addDayPlan(data) {
  return request({
    url: '/produce/dayPlan',
    method: 'post',
    data: data
  })
}

// 修改生产计划-日计划
export function updateDayPlan(data) {
  return request({
    url: '/produce/dayPlan',
    method: 'put',
    data: data
  })
}

// 删除生产计划-日计划
export function delDayPlan(id) {
  return request({
    url: '/produce/dayPlan/' + id,
    method: 'delete'
  })
}



// 班组列表
export function getTeamGroupSelect() {
  return request({
    url: '/basic/groupManagement/listSelect',
    method: 'get'
  })
}
